<template>
  <div id="app">
    <question-form @save="onSave" />
    <answer-item :list="list" />
  </div>
</template>

<script>
import QuestionForm from './components/QuestionForm.vue';
import AnswerItem from './components/AnswerItem.vue';
import './assets/common.scss';

export default {
  name: 'App',
  components: {
    QuestionForm,
    AnswerItem
  },
  data() {
    return {
      list: []
    }
  },
  methods: {
    onSave(data) {
      console.log(data)
      this.list = data
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
